package com.bawei.yangzongcai___day2.MaiDongFangQi.day2;





import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.bawei.mvp.View.BoosAcyivity;
import com.bawei.yangzongcai___day2.R;


import java.util.List;

@Route(path = "/hongqi2/dongfanhongqi2")
public class MaiDongFangQi2 extends BoosAcyivity implements AoodContrect.aoodview {

    private RecyclerView duoyidian;
    @Override
    public int bandLayout() {
        return R.layout.activity_mai_dong_fang_qi2;
    }

    @Override
    public void initView() {

        duoyidian = findViewById(R.id.duoyidian);
        duoyidian.setLayoutManager(new StaggeredGridLayoutManager(1,StaggeredGridLayoutManager.VERTICAL));
        AoodPreter preter = new AoodPreter(this,new AoodModel());
        preter.getaoodpreter();

    }

    @Override
    public void initDate() {

    }

    @Override
    public void getview(List<JavaDuoyidian.DataBean> verticalBeans) {
        BaseappAdpter adpter = new BaseappAdpter(verticalBeans);
        duoyidian.setAdapter(adpter);

    }

    @Override
    public void showLayout() {

    }

    @Override
    public void haidLayout() {

    }


}
